package com.systemframework.sys.dto.response;

import cn.zhxu.bs.bean.DbField;
import cn.zhxu.bs.bean.SearchBean;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @author summer
 * @date 2023-04-06 10:12
 */
@Data
@SearchBean(tables = "email_template t left join email_account a ON t.accountId=a.id",autoMapTo = "t",orderBy = "t.createTime DESC")
public class EmailTemplateResponseDTO implements Serializable {

    private Integer id;

    private String name;

    private String code;

    @DbField("a.email")
    private String accountName;

    @DbField("t.sendName")
    private String sendName;

    private String title;

    private String content;

    @DbField("t.createTime")
    @JsonFormat(pattern ="yyyy-MM-dd HH:mm:ss",timezone ="GMT+8")
    private Date createTime;
}
